home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000417_news@columbia.edu _Tue Apr 16 08:24:37 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id IAA09449 for <kermit.misc@watsun>; Tue, 16 Apr 1996 08:24:32 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id IAA21704 for kermit.misc@watsun; Tue, 16 Apr 1996 08:24:30 -0400 (EDT)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!hamblin.math.byu.edu!acs2.byu.edu!news.cuny.edu!news.sprintlink.net!howland.reston.ans.net!newsfeed.internetmci.com!in1.uu.net!hearst.acc.Virginia.EDU!murdoch!usenet
  6. From: ghp5h@virginia.edu (George H. Payne)
  7. Subject: K95 script crawling
  8. X-Nntp-Posting-Host: ghp5hpc.law.virginia.edu
  9. Content-Type: Text/Plain; charset=US-ASCII
  10. Message-ID: <Dpx2AL.8Ix@murdoch.acc.Virginia.EDU>
  11. Sender: usenet@murdoch.acc.Virginia.EDU
  12. Organization: University of Virginia School of Law
  13. X-Newsreader: WinVN 0.99.7
  14. Mime-Version: 1.0
  15. Date: Mon, 15 Apr 1996 18:35:09 GMT
  16. Lines: 34
  17.  
  18. The script below is basically a loop that looks for begin-print and end-print 
  19. print-through escape sequences and captures the stuff that is supposed to be 
  20. printing to a file, post.tmp.  Under msdos kermit, this script runs at 
  21. reasonable, if not terribly amazing, speed (it processes a line per second or 
  22. so).  Under K95 on a better computer running winNT with nothing else running, 
  23. it CRAWLS (one line every couple of minutes).
  24.  
  25. Do I need to set some kind of polling parameter or something?
  26.  
  27. Thanks for any help.
  28.  
  29.  
  30. set input timeout-action proceed
  31. input 10 ____________________
  32. if failure goto locked
  33.  
  34.  
  35. :loop
  36. input 40 \{27}[5i
  37. if failure goto endloop
  38. log session post.tmp
  39. input 40 \{27}[4i
  40. if failure goto noendprint
  41. close session
  42. goto loop
  43. :endloop
  44.  
  45. ; Out of loop
  46.  
  47. -- 
  48. George H. Payne
  49. Law Information Technology and Communications
  50. UVa Law School
  51.